package com.dmgis.hndz.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.models.auth.In;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 省级预警临时表
 *
 * @TableName ybba01a
 */
@TableName(value = "ybba01a")
@Data
public class Ybba01a implements Serializable {
    /**
     * ID号
     */
    @TableField(value = "ybba01a010")
    private String ybba01a010;

    /**
     * 预警产品类型
     */
    @TableField(value = "ybba01a020")
    private Integer ybba01a020;

    /**
     * 预警时间
     */
    @TableField(value = "ybba01a030")
    private LocalDateTime ybba01a030;

    /**
     * 四级预警区域
     */
    @TableField(value = "ybba01a040")
    private String ybba01a040;

    /**
     * 三级预警区域
     */
    @TableField(value = "ybba01a050")
    private String ybba01a050;

    /**
     * 二级预警区域
     */
    @TableField(value = "ybba01a060")
    private String ybba01a060;

    /**
     * 一级预警区域
     */
    @TableField(value = "ybba01a070")
    private String ybba01a070;

    /**
     * 四级预警地理范围
     */
    @TableField(value = "ybba01a080")
    private String ybba01a080;

    /**
     * 三级预警地理范围
     */
    @TableField(value = "ybba01a090")
    private String ybba01a090;

    /**
     * 二级预警地理范围
     */
    @TableField(value = "ybba01a100")
    private String ybba01a100;

    /**
     * 一级预警地理范围
     */
    @TableField(value = "ybba01a110")
    private String ybba01a110;

    /**
     * 预警文档路径
     */
    @TableField(value = "ybba01a120")
    private String ybba01a120;
    /**
     * 文本信息
     */
    @TableField(value = "ybba01a130")
    private String ybba01a130;
    /**
     * 解析后字符串
     */
    @TableField(value = "ybba01a140")
    private Object ybba01a140;
    /**
     * 预警编号
     */
    @TableField(value = "ybba01a150")
    private Integer ybba01a150;
    /**
     * 预警内容
     */
    @TableField(value = "ybba01a160")
    private String ybba01a160;
    /**
     * 时效
     */
    @TableField(value = "ybba01a035")
    private String ybba01a035;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Ybba01a other = (Ybba01a) that;
        return (this.getYbba01a010() == null ? other.getYbba01a010() == null : this.getYbba01a010().equals(other.getYbba01a010()))
                && (this.getYbba01a020() == null ? other.getYbba01a020() == null : this.getYbba01a020().equals(other.getYbba01a020()))
                && (this.getYbba01a030() == null ? other.getYbba01a030() == null : this.getYbba01a030().equals(other.getYbba01a030()))
                && (this.getYbba01a040() == null ? other.getYbba01a040() == null : this.getYbba01a040().equals(other.getYbba01a040()))
                && (this.getYbba01a050() == null ? other.getYbba01a050() == null : this.getYbba01a050().equals(other.getYbba01a050()))
                && (this.getYbba01a060() == null ? other.getYbba01a060() == null : this.getYbba01a060().equals(other.getYbba01a060()))
                && (this.getYbba01a070() == null ? other.getYbba01a070() == null : this.getYbba01a070().equals(other.getYbba01a070()))
                && (this.getYbba01a080() == null ? other.getYbba01a080() == null : this.getYbba01a080().equals(other.getYbba01a080()))
                && (this.getYbba01a090() == null ? other.getYbba01a090() == null : this.getYbba01a090().equals(other.getYbba01a090()))
                && (this.getYbba01a100() == null ? other.getYbba01a100() == null : this.getYbba01a100().equals(other.getYbba01a100()))
                && (this.getYbba01a035() == null ? other.getYbba01a035() == null : this.getYbba01a035().equals(other.getYbba01a035()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getYbba01a010() == null) ? 0 : getYbba01a010().hashCode());
        result = prime * result + ((getYbba01a020() == null) ? 0 : getYbba01a020().hashCode());
        result = prime * result + ((getYbba01a030() == null) ? 0 : getYbba01a030().hashCode());
        result = prime * result + ((getYbba01a040() == null) ? 0 : getYbba01a040().hashCode());
        result = prime * result + ((getYbba01a050() == null) ? 0 : getYbba01a050().hashCode());
        result = prime * result + ((getYbba01a060() == null) ? 0 : getYbba01a060().hashCode());
        result = prime * result + ((getYbba01a070() == null) ? 0 : getYbba01a070().hashCode());
        result = prime * result + ((getYbba01a080() == null) ? 0 : getYbba01a080().hashCode());
        result = prime * result + ((getYbba01a090() == null) ? 0 : getYbba01a090().hashCode());
        result = prime * result + ((getYbba01a100() == null) ? 0 : getYbba01a100().hashCode());
        result = prime * result + ((getYbba01a035() == null) ? 0 : getYbba01a035().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", ybba01a010=").append(ybba01a010);
        sb.append(", ybba01a020=").append(ybba01a020);
        sb.append(", ybba01a030=").append(ybba01a030);
        sb.append(", ybba01a040=").append(ybba01a040);
        sb.append(", ybba01a050=").append(ybba01a050);
        sb.append(", ybba01a060=").append(ybba01a060);
        sb.append(", ybba01a070=").append(ybba01a070);
        sb.append(", ybba01a080=").append(ybba01a080);
        sb.append(", ybba01a090=").append(ybba01a090);
        sb.append(", ybba01a100=").append(ybba01a100);
        sb.append(", ybba01a035=").append(ybba01a035);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
